<script> var apiUrl = '@System.Configuration.ConfigurationManager.AppSettings["url"]'; </script>